import request from '@/utils/request';

export async function queryRule(params) {
  return request(`/admin/query`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}


export async function addRule(params) {
  return request('/admin/add', {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updateRule(params) {
  return request('/admin/edit', {
    method: 'POST',
    body: {
      ...params,
      method: 'update',
    },
  });
}

export async function deptQuery(params) {
  return request('/dept/query', {
    method: 'POST',
    body: params,
  });
}

export async function fakeAccountLogin(params) {
  return request('/sign/login', {
    method: 'POST',
    body: params,
  });
}
export async function merchantsLogin(params) {
  return request('/sign/ent/login', {
    method: 'POST',
    body: params,
  });
}


